package ran.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import ran.api.domain.dto.JudgeSubmitDTO;
import ran.api.domain.vo.UserQuestionResultVO;
import ran.constants.Constants;
import ran.entity.Result;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ran
 * Date: 2025-11-22
 * Time: 16:23
 */
@FeignClient(contextId = "RemoteJudgeService",value = Constants.JUDGE_SERVICE)
public interface RemoteJudgeService {
    @PostMapping("/judge/doJudgeJavaCode")
    Result<UserQuestionResultVO> doJudgeJavaCode(@RequestBody JudgeSubmitDTO judgeSubmitDTO);
}
